From: emellor@ewan Date: Tue, 27 Sep 2005 11:30:13 +0000 (+0100) Subject: Use constant in XendDomainInfo rather than embedding a string literal. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16769^2~16^2~40 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2585169bbbf4609a46957f1e5fd210ee8b942a8b;p=xen.git Use constant in XendDomainInfo rather than embedding a string literal. Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xend/XendCheckpoint.py b/tools/python/xen/xend/XendCheckpoint.py index 51d0904245..b0e73a97c9 100644 --- a/tools/python/xen/xend/XendCheckpoint.py +++ b/tools/python/xen/xend/XendCheckpoint.py @@ -10,8 +10,12 @@ import select import sxp from string import join from struct import pack, unpack, calcsize + from xen.util.xpopen import xPopen3 + import xen.lowlevel.xc + +import XendDomainInfo from xen.xend.xenstore.xsutil import IntroduceDomain from XendError import XendError @@ -74,7 +78,7 @@ def save(xd, fd, dominfo, live): if l.rstrip() == "suspend": log.info("suspending %d" % dominfo.domid) xd.domain_shutdown(dominfo.domid, reason='suspend') - dominfo.state_wait("suspended") + dominfo.state_wait(XendDomainInfo.STATE_VM_SUSPENDED) log.info("suspend %d done" % dominfo.domid) child.tochild.write("done\n") child.tochild.flush()